package com.scm.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @ClassName UserModel
 * @Description TODO
 * @Author Xu
 * @Date 2021/7/6 0:14
 * @Version 1.0
 **/
@Data
@Component
public class UserModel {
    private String modelName;
    private String account;

    public static void changeModelName(UserModel userModel){
        if (userModel.getModelName().equals("sell")){
            userModel.setModelName("销售");
        }else if (userModel.getModelName().equals("procurement")){
            userModel.setModelName("采购");
        }else if (userModel.getModelName().equals("finance")){
            userModel.setModelName("财务");
        }else if (userModel.getModelName().equals("storage")){
            userModel.setModelName("仓管");
        }
    }

    public UserModel( String account ,String modelCode) {
        this.modelName = modelCode;
        this.account = account;
    }

    public UserModel() {
    }
}
